package com.itgt.classwork;

public class Chapters3_4 {

	public static void main(String[] args) {
		int day = 9;
		int i = 0;
		int j= 1;
		while(day>0) {
			i=(1+j)*2;
			j=i;
			day--;
			System.out.println("第"+(day+1)+"天，共"+i+"个桃子，吃了"+(i/2+1)+"个桃子，余了"+(i/2-1)+"个桃子");
		}
		System.out.println("共摘"+i);
	}

}
